package com;

import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisURI;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.sync.RedisCommands;

public class Main {
    public static void main(String[] args) {
        RedisURI redisURI = new RedisURI();
        redisURI.setHost("localhost");
        redisURI.setPort(6379);

        RedisClient client = RedisClient.create(redisURI);
        StatefulRedisConnection<String, String> connect = client.connect();

        RedisCommands<String, String> commands= connect.sync();

        commands.set("java", "java lettuce");



        connect.close();



    }
}
